<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Model</title>
    <meta http-equiv="Content-language" content="zh-CN" />
</head>
<body>
<div id="page">
</div><!-- Page end! -->
<script type="text/javascript">
//<![CDATA[
var head = document.getElementsByTagName('head')[0];
var js = document.createElement('script');
js.type = 'text/javascript';

var non = document.createElement('iframe');
non.frameborder = '0';
//non.style.display = 'none';

if(non.attachEvent){
	alert('test');
	/*
    non.attachEvent("onload", function(){
        alert("Local iframe is now loaded.");
    });
	*/
	non.onreadystatechange = function(){
        if (non.readyState == "complete"){
            alert("Local iframe is now loaded.");
        }
    };
	
}else{
	non.onload = function(){
		alert('iframe load');
		eval(this.contentDocument.body.children[0].innerHTML);
	};
}
non.src = 'test.js';
head.appendChild(non);
//]]>
</script>
</body>
</html>
